<?php
/* Smarty version 3.1.30, created on 2017-04-19 15:37:04
  from "D:\phpStudy\WWW\Myproject\Projects_liu\Application\Index\view\xiugai.html" */

/* @var Smarty_Internal_Template $_smarty_tpl */
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
  'version' => '3.1.30',
  'unifunc' => 'content_58f713a0d37746_04647270',
  'has_nocache_code' => false,
  'file_dependency' => 
  array (
    'aff893e11e4bbfd993e5692237f63d0300999542' => 
    array (
      0 => 'D:\\phpStudy\\WWW\\Myproject\\Projects_liu\\Application\\Index\\view\\xiugai.html',
      1 => 1492587419,
      2 => 'file',
    ),
  ),
  'includes' => 
  array (
  ),
),false)) {
function content_58f713a0d37746_04647270 (Smarty_Internal_Template $_smarty_tpl) {
?>
<!DOCTYPE html>
<!--
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
-->
<html>
    <head>
        <title>修改</title>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <?php echo '<script'; ?>
 src="./jquery-3.1.1.min.js" type="text/javascript"><?php echo '</script'; ?>
>
    </head>
    <body>
        <input type="hidden" name="id" value="<?php echo $_smarty_tpl->tpl_vars['arr']->value['id'];?>
"/>
        昵称:<input type="text" name="user" value="<?php echo $_smarty_tpl->tpl_vars['arr']->value['name'];?>
"/><br/>
        密码:<input type="text" name="pwd" value="<?php echo $_smarty_tpl->tpl_vars['arr']->value['pwd'];?>
"/><br/>
        <input type="button" name="button" value="修改"/>
        <?php echo '<script'; ?>
 type="text/javascript">
            
            $("input[name=button]").click(function(){
                var name=$("input[name=user]").val();
                var pwd=$("input[name=pwd]").val();
                var id=$("input[name=id]").val();
                $.ajax({
                   type:"post",
                   url:"index.php?m=Index&c=Change&a=insertinto",
                   data:{name:name,pwd:pwd,id:id},
                      success:function(a){
                          if(a==1){
                              
                          }else{
                               window.location.href ="index.php?m=Index&c=List&a=register";
                          }
                   }
                   
                });
            });
            
        <?php echo '</script'; ?>
>
    </body>
</html>
<?php }
}
